package com.example.provider.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import org.example.UserService;
import org.springframework.stereotype.Component;

/**
 * @author lijingyang
 * @Title:
 * @Package
 * @Description:
 * @date 2020/11/2517:44
 */
@Service   //Dubbo的@Service注解，非Spring  作用：暴露服务
@Component
public class UserServiceImpl implements UserService {

    @Override
    public int add(int a) {
        return 100+a;
    }
}